package top.sxlai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.http.ResponseEntity;
import top.sxlai.entity.DTO.ShareDTO;
import top.sxlai.entity.FileWithFolder;
import top.sxlai.entity.OpSharefile;

import java.util.List;
import java.util.Map;


/**
 *
 * @author sxl
 * @since 2024-04-23 16:10:49
 */
public interface OpSharefileService extends IService<OpSharefile> {

    ResponseEntity<Map<String, String>> createShare(ShareDTO shareDTO);

    ResponseEntity<Map<String, String>> checkShare(String shareId);

    ResponseEntity<List<FileWithFolder>> managementSharing() throws Exception;

    ResponseEntity<Map<String, String>> cancelSharing(ShareDTO shareDTO);
}

